﻿/*
 * Copyright © 2020, Wuxi Safover Intelligent Technology Co., Ltd. All rights reserved.
 * 
 * 无锡安永智能科技有限公司版权所有，未经许可，不得用于商业用途
 * 
 * Visit: https://www.safover.com/ 
 */

using Dna;
using Microsoft.Extensions.DependencyInjection;
using SafoverWpfFw;

namespace Safover.LidarCollector.ViewModel
{
    public static class ApplicationExtensions
    {
        public static FrameworkConstruction AddApplicationViewModels(this FrameworkConstruction construction)
        {
            construction.Services.AddSingleton<ApplicationViewModel>();

            construction.Services.AddSingleton<CollectionPageViewModel>();

            construction.Services.AddSingleton<DeviceReadingsViewModel>();


            return construction;
        }

        public static FrameworkConstruction AddApplicationServices(this FrameworkConstruction construction)
        {
            construction.Services.AddTransient<ITaskManager, BaseTaskManager>();

            construction.Services.AddTransient<IUIManager, BaseUIManager>();

            return construction;
        }
    }
}
